import java.util.Scanner;

public class Main1095 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        char a = 'A';
        for (int i = 1; i <= n; i++) {
            for (int k = 1; k <= n - i; k++) {
                System.out.print(" ");
            }

            for (int k = 1; k <= 2 * i - 1; k++) {
                a = (char) (k + 64);
                System.out.print(a);
            }
            System.out.println();
            a++;
        }

    }
}

